package de.se2.sharebox.frames;

import java.awt.GridLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;

public class Umbenennen extends JFrame
{

	private JLabel ueberschrift = new JLabel("Neue Name eingeben: ");
	private JTextField jtfname = new JTextField();
	private JButton jbOk = new JButton("Ok");
	private JButton jbCancel = new JButton("Cancel");

	public Umbenennen()
	{
		this.InitForm();
	}

	private void InitForm()
	{
		setTitle("rename");
		this.setLayout(new GridLayout(0, 2));
		this.add(ueberschrift);
		this.add(jtfname);
		this.add(jbOk);
		this.add(jbCancel);
	}

	public static void main(String[] args)
	{
		Umbenennen umbenennen = new Umbenennen();
		umbenennen.setSize(350, 150);
		umbenennen.setVisible(true);
	}

}
